<?php
include $_SERVER['DOCUMENT_ROOT'].'/lib/Epi/Epi.php';
//Epi::setPath('base', $_SERVER['DOCUMENT_ROOT'].'/lib/Epi');


Epi::init('api');

getRoute()->get('/version', array('ctrl','ver'));
getRoute()->get('/user', array('ctrl','user'));
getRoute()->run();

class ctrl{
	function ver(){
	  return '0.1';
	}
	function user(){
	  return 'john';
	}
}
?>
